package com.sinbader.xiaole.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author LuoYong
 * @since 2020-04-20
 */
@TableName("product")
public class Product implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品编码
     */
    @TableField("product_num")
    private String productNum;

    /**
     * 商品名称
     */
    @TableField("product_name")
    private String productName;

    /**
     * 货架id
     */
    @TableField("shelf_id")
    private Long shelfId;

    /**
     * 货架名称
     */
    @TableField("shelf_name")
    private String shelfName;

    /**
     * 产地
     */
    @TableField("produce_place")
    private String producePlace;

    /**
     * 品牌
     */
    @TableField("brand")
    private String brand;

    /**
     * 车型
     */
    @TableField("car_model")
    private String carModel;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 仓库名称
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 仓库id
     */
    @TableField("product_category_id")
    private Long productCategoryId;

    /**
     * 仓库名称
     */
    @TableField("product_category_name")
    private String productCategoryName;

    /**
     * 供应商id
     */
    @TableField("supplier_id")
    private Long supplierId;

    /**
     * 供应商名称
     */
    @TableField("supplier_name")
    private String supplierName;

    /**
     * 分店id
     */
    @TableField("shop_id")
    private Long shopId;

    /**
     * 库存数量
     */
    @TableField("stock_count")
    private Integer stockCount;

    /**
     * 单价
     */
    @TableField("unit_price")
    private BigDecimal unitPrice;

    /**
     * 图片存储路径
     */
    @TableField("img_product")
    private String imgProduct;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人id
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人id
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 默认为0,1为删除
     */
    @TableField("is_delete")
    private Integer isDelete;

    /**
     * 已售数量
     */
    @TableField("saled_count")
    private Integer saledCount;

    /**
     * 商品详情
     */
    @TableField("img_details")
    private String imgDetails;

    /**
     * 进货价
     */
    @TableField("purchase_price")
    private BigDecimal purchasePrice;

    /**
     * 获取 id
     *
     * @return id.
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置 id
     *
     * @param id id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取 productNum
     *
     * @return productNum.
     */
    public String getProductNum() {
        return productNum;
    }

    /**
     * 设置 productNum
     *
     * @param productNum productNum
     */
    public void setProductNum(String productNum) {
        this.productNum = productNum;
    }

    /**
     * 获取 productName
     *
     * @return productName.
     */
    public String getProductName() {
        return productName;
    }

    /**
     * 设置 productName
     *
     * @param productName productName
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * 获取 shelfId
     *
     * @return shelfId.
     */
    public Long getShelfId() {
        return shelfId;
    }

    /**
     * 设置 shelfId
     *
     * @param shelfId shelfId
     */
    public void setShelfId(Long shelfId) {
        this.shelfId = shelfId;
    }

    /**
     * 获取 shelfName
     *
     * @return shelfName.
     */
    public String getShelfName() {
        return shelfName;
    }

    /**
     * 设置 shelfName
     *
     * @param shelfName shelfName
     */
    public void setShelfName(String shelfName) {
        this.shelfName = shelfName;
    }

    /**
     * 获取 producePlace
     *
     * @return producePlace.
     */
    public String getProducePlace() {
        return producePlace;
    }

    /**
     * 设置 producePlace
     *
     * @param producePlace producePlace
     */
    public void setProducePlace(String producePlace) {
        this.producePlace = producePlace;
    }

    /**
     * 获取 brand
     *
     * @return brand.
     */
    public String getBrand() {
        return brand;
    }

    /**
     * 设置 brand
     *
     * @param brand brand
     */
    public void setBrand(String brand) {
        this.brand = brand;
    }

    /**
     * 获取 carModel
     *
     * @return carModel.
     */
    public String getCarModel() {
        return carModel;
    }

    /**
     * 设置 carModel
     *
     * @param carModel carModel
     */
    public void setCarModel(String carModel) {
        this.carModel = carModel;
    }

    /**
     * 获取 unit
     *
     * @return unit.
     */
    public String getUnit() {
        return unit;
    }

    /**
     * 设置 unit
     *
     * @param unit unit
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    /**
     * 获取 warehouseId
     *
     * @return warehouseId.
     */
    public Long getWarehouseId() {
        return warehouseId;
    }

    /**
     * 设置 warehouseId
     *
     * @param warehouseId warehouseId
     */
    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    /**
     * 获取 warehouseName
     *
     * @return warehouseName.
     */
    public String getWarehouseName() {
        return warehouseName;
    }

    /**
     * 设置 warehouseName
     *
     * @param warehouseName warehouseName
     */
    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    /**
     * 获取 productCategoryId
     *
     * @return productCategoryId.
     */
    public Long getProductCategoryId() {
        return productCategoryId;
    }

    /**
     * 设置 productCategoryId
     *
     * @param productCategoryId productCategoryId
     */
    public void setProductCategoryId(Long productCategoryId) {
        this.productCategoryId = productCategoryId;
    }

    /**
     * 获取 productCategoryName
     *
     * @return productCategoryName.
     */
    public String getProductCategoryName() {
        return productCategoryName;
    }

    /**
     * 设置 productCategoryName
     *
     * @param productCategoryName productCategoryName
     */
    public void setProductCategoryName(String productCategoryName) {
        this.productCategoryName = productCategoryName;
    }

    /**
     * 获取 supplierId
     *
     * @return supplierId.
     */
    public Long getSupplierId() {
        return supplierId;
    }

    /**
     * 设置 supplierId
     *
     * @param supplierId supplierId
     */
    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    /**
     * 获取 supplierName
     *
     * @return supplierName.
     */
    public String getSupplierName() {
        return supplierName;
    }

    /**
     * 设置 supplierName
     *
     * @param supplierName supplierName
     */
    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    /**
     * 获取 shopId
     *
     * @return shopId.
     */
    public Long getShopId() {
        return shopId;
    }

    /**
     * 设置 shopId
     *
     * @param shopId shopId
     */
    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    /**
     * 获取 stockCount
     *
     * @return stockCount.
     */
    public Integer getStockCount() {
        return stockCount;
    }

    /**
     * 设置 stockCount
     *
     * @param stockCount stockCount
     */
    public void setStockCount(Integer stockCount) {
        this.stockCount = stockCount;
    }

    /**
     * 获取 unitPrice
     *
     * @return unitPrice.
     */
    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    /**
     * 设置 unitPrice
     *
     * @param unitPrice unitPrice
     */
    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    /**
     * 获取 imgProduct
     *
     * @return imgProduct.
     */
    public String getImgProduct() {
        return imgProduct;
    }

    /**
     * 设置 imgProduct
     *
     * @param imgProduct imgProduct
     */
    public void setImgProduct(String imgProduct) {
        this.imgProduct = imgProduct;
    }

    /**
     * 获取 remark
     *
     * @return remark.
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置 remark
     *
     * @param remark remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获取 createTime
     *
     * @return createTime.
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置 createTime
     *
     * @param createTime createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取 createUser
     *
     * @return createUser.
     */
    public Long getCreateUser() {
        return createUser;
    }

    /**
     * 设置 createUser
     *
     * @param createUser createUser
     */
    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    /**
     * 获取 updateTime
     *
     * @return updateTime.
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置 updateTime
     *
     * @param updateTime updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取 updateUser
     *
     * @return updateUser.
     */
    public Long getUpdateUser() {
        return updateUser;
    }

    /**
     * 设置 updateUser
     *
     * @param updateUser updateUser
     */
    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    /**
     * 获取 isDelete
     *
     * @return isDelete.
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 设置 isDelete
     *
     * @param isDelete isDelete
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 获取 saledCount
     *
     * @return saledCount.
     */
    public Integer getSaledCount() {
        return saledCount;
    }

    /**
     * 设置 saledCount
     *
     * @param saledCount saledCount
     */
    public void setSaledCount(Integer saledCount) {
        this.saledCount = saledCount;
    }

    /**
     * 获取 imgDetails
     *
     * @return imgDetails.
     */
    public String getImgDetails() {
        return imgDetails;
    }

    /**
     * 设置 imgDetails
     *
     * @param imgDetails imgDetails
     */
    public void setImgDetails(String imgDetails) {
        this.imgDetails = imgDetails;
    }

    /**
     * 获取 purchasePrice
     *
     * @return purchasePrice.
     */
    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    /**
     * 设置 purchasePrice
     *
     * @param purchasePrice purchasePrice
     */
    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", productNum='" + productNum + '\'' +
                ", productName='" + productName + '\'' +
                ", shelfId=" + shelfId +
                ", shelfName='" + shelfName + '\'' +
                ", producePlace='" + producePlace + '\'' +
                ", brand='" + brand + '\'' +
                ", carModel='" + carModel + '\'' +
                ", unit='" + unit + '\'' +
                ", warehouseId=" + warehouseId +
                ", warehouseName='" + warehouseName + '\'' +
                ", productCategoryId=" + productCategoryId +
                ", productCategoryName='" + productCategoryName + '\'' +
                ", supplierId=" + supplierId +
                ", supplierName='" + supplierName + '\'' +
                ", shopId=" + shopId +
                ", stockCount=" + stockCount +
                ", unitPrice=" + unitPrice +
                ", imgProduct='" + imgProduct + '\'' +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", createUser=" + createUser +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                ", isDelete=" + isDelete +
                ", saledCount=" + saledCount +
                ", imgDetails='" + imgDetails + '\'' +
                ", purchasePrice=" + purchasePrice +
                '}';
    }
}
